import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    pause: false,
    progress: 0,
    duration: 0
  },
  mutations: {
    SET_PAUSE(state, p) {
      state.pause = p;
    },
    SET_PROGRESS(state, p) {
      state.progress = p;
    },
    SET_DURATION(state, p) {
      state.duration = p;
    }
  },
  actions: {},
  modules: {}
});
